package com.sinping.qh.service.app.MessageInfo;

import com.sinping.qh.api.support.FrontPage;
import com.sinping.qh.api.support.ResDto;
import com.sinping.qh.dto.admin.user.MessageInfoDto;

import javax.servlet.http.HttpServletRequest;

public interface IMessageInfoService {

    /**
     * 添加通知信息
     * @param messageInfoDto
     * @return
     */
    ResDto addMessageInfo(HttpServletRequest httpServletRequest,MessageInfoDto messageInfoDto);

    /**
     * 根据id删除通知消息
     * @param id
     * @return
     */
    ResDto deleteMessageInfoById(String id);

    /**
     * 根据id删除通知消息
     * @param docId
     * @return
     */
    ResDto deleteMessageInfoByDocId(String docId);

    /**
     * 更新通知消息
     * @param messageInfoDto
     * @return
     */
    ResDto updateMessageInfo(HttpServletRequest httpServletRequest,MessageInfoDto messageInfoDto);

    /**
     * 分页查询通知消息
     * @param frontPage
     * @return
     */
    public ResDto getMessageInfoFrontPage(String userId,FrontPage frontPage);

    /**
     * 根据id查询单条通知消息
     * @param id
     * @return
     */
    ResDto getMessageInfoById(String id);

    /**
     * 获取最新通知
     * @return
     */
    ResDto getLatestMessageInfo(HttpServletRequest httpServletRequest);

    /**
     * 消息查询
     * @return
     */
    ResDto getMessageInfoByMsg(String msg);
}
